<div class="nav-sub w1180">
	<ul class="zoom">
		<li><a href="/crm/index/index">城市管理</a></li>
		<li><a class="on" href="/crm/index/catalog">类目管理</a></li>
	</ul>
</div>
<div class="main-ct w1180">
<!-- 	<a href="/crm/index/catalog" class="btn-cs btn-blue btn-fillet mt10">返 回</a> -->
<!-- 	<h2 class="tit-border">用户信息</h2> -->
	<form id="form1" method="post" action="/crm/index/update-catalog">
	<div class="form-info mt20">
		<input name="catalog_id" id="catalog_id" type="hidden" value="<?php echo $this->catalog['catalog_id'];?>">
		<dl>
			<dt>城  市：</dt>
			<dd><select name="city_id" id="city_id" class="txt" >
				<option value="">请选择</option>
				<?php foreach ($this->city as $city):?>
				<option value="<?php echo $city['city_id'];?>" <?php if($this->catalog['city_id'] == $city['city_id']):?>selected<?php endif;?> ><?php echo $city['city_name'];?></option>
				<?php endforeach;?>
			</select></dd>
		</dl>
		<dl>
			<dt>商户类型：</dt>
			<dd><input name="catalog_name" id="catalog_name" type="text" class="txt" value="<?php echo $this->catalog['catalog_name'];?>"></dd>
		</dl>
		<dl>
			<dt>描  述：</dt>
			<dd><input name="catalog_description" id="catalog_description" type="text" class="txt" value="<?php echo $this->catalog['catalog_description'];?>"></dd>
		</dl>
	</div>
	<p class="mt30 txt-center"><input class="input-cs btn-fillet btn-green" type="submit" value="确定"></p>
	</form>
</div>
<script>
$().ready(function() {
	$("#form1").validate({
		debug:true,
		rules: {
			city_id: {
				required: true,
			},
			catalog_name: {
				required: true,
			},
	
		},
		submitHandler:function(form){  
            form.submit();
	    }
	});

});
</script>